package com.html2rss.models;

import com.html2rss.core.HttpURL;
import com.sun.tools.javac.util.Pair;
import org.apache.commons.httpclient.URIException;

import java.util.List;
import java.util.ArrayList;

/**
 * User: vvs
 * Date: 07.04.2007
 * Time: 19:42:56
 */
public class UserPage {
    private String content;
    private HttpURL url;
    private List< Pair<String, String> > parameters = new ArrayList<Pair<String, String>>();

    public UserPage() {

    }


    public HttpURL getUrl() {
        return url;
    }

    public void setUrl(HttpURL url) {
        this.url = url;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public UserPage(String content, String url) throws URIException {
        this.content = content;
        this.url = new HttpURL(url);
    }


    public UserPage(String content, HttpURL url) {
        this.content = content;
        this.url = url;
    }

    public List<Pair<String, String>> getParameters() {
        return parameters;
    }

    public void setParameters(List<Pair<String, String>> parameters) {
        this.parameters = parameters;
    }
}
